<template>
  <div class="homePanel">
    <div class="homePanelItem">
      <div class="homePanelItemTitle">
        <p>{{ title }}</p>
        <span> {{ subTitle }}</span>
      </div>

      <slot />
    </div>
  </div>
</template>

<script setup name="ComponentName">
// 定义props
defineProps({
  title: {
    type: String,
    default: '新品尝鲜',
  },
  subTitle: {
    type: String,
    default: '新鲜出炉 品质靠谱',
  },
})
</script>

<style scoped lang="scss">
.homePanel {
  padding: 20px 0;
  width: 100%;
  padding: 20px 100px;
  background: #ffffff;
}
.homePanelItem {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-flow: column;
  gap: 20px;
}
.homePanelItemTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  p {
    font-size: 30px;
    font-weight: bold;
  }
  span {
    font-size: 16px;
    color: #686868;
    margin-left: 20px;
  }
}
</style>
